Skip to content

Fix read_html_live example#426

Merged
hadley merged 9 commits into
tidyverse:mainfrom
jrosell:patch-1
Aug 20, 2025
Merged

Fix read_html_live example#426
hadley merged 9 commits into
tidyverse:mainfrom
jrosell:patch-1

Conversation

@jrosell

@jrosell jrosell commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

Closes #430

I checked the read_html_live example and saw that the css selectors changed and a cookie consent banner was added.

This PR is to change the read_html_live() example, so it can reject cookies and extract organizations with the new page version. Reload was needed to force the JSON file download with cookie consent settings already configured.

I checked the read_html_live example and saw that the css selectors changed and a cookie consent banner was added.

This PR is to changed the read_html_live() example, so it can reject cookies and extract organizations with the new page version. Scroll was needed to force the JSON file download.

I used |>, but I can change my PR to %>% if required.
@jrosell

jrosell commented Oct 17, 2024

Copy link
Copy Markdown
Contributor Author

I see some tests fail because of snapshot changes:

-    Size:   821273
+     Size:   821905
-   Navigating to <http://rstudio.com/>.
+   Navigating to <https://posit.co/>.

Let me know if I have to change something.

@hadley

hadley commented Aug 20, 2025

Copy link
Copy Markdown
Member

Thanks for working on this! I simplified the code further since it seems like we can just use <table>, and simplified away the need to programatically click the cookie consent by telling the reader to do it. This is a bit lazy, but it also nicely illustrates that you can combine human and manual interaction.

@hadley hadley merged commit e345f5f into tidyverse:main Aug 20, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

read_html_live() example fails

2 participants